<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh;">
      <a-layout-header class="header">
        <GlobalHeader/>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view></router-view>
      </a-layout-content>
      <a-layout-footer class="footer">
        程序员:搜一码赛
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script>
import GlobalHeader from '@/components/GlobalHeader.vue'; // 假设GlobalHeader组件位于src/components目录下
export default {
  components: {
    GlobalHeader,
  },
};
</script>

<style scoped>

#basicLayout .header{
  margin-bottom: 16px;
}
#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 16px;
  padding: 20px;
}
#basicLayout .footer {
  /* background: #efefef; */
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
</style>
